export const pageSettings = {
    // 自研代办
    SelfResearchAgency: ['BasicDataInfo', 'TaskBasicInfo', 'AttachSignInfo', 'JnTaskDetail'],
    // 非自研代办
    NonSelfResearchAgency: ['BasicDataInfo', 'AttachSignInfo', 'JnTaskDetail']
}
export const ENUM_TYPE_STATUS = 'chinatower.pms.bpm.wd.it_batch_electronicSeal'
// 季度表单
export const formOptionQuarter = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        {
            type: 'input',
            prop: 'taskName',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '任务名称：',
            showTooltip: true,
            disabled: true
        },
        {
            type: 'datePicker',
            prop: 'taskYear',
            value: new Date().getFullYear().toString(),
            format: 'yyyy',
            width: '',
            colSpan: 6,
            valueFormat: 'yyyy',
            clearable: true,
            dateType: 'year',
            label: '任务年份：',
            disabled: true
        },
        {
            type: 'select',
            prop: 'taskQuarter',
            value: '',
            width: '',
            colSpan: 6,
            label: '任务季度：',
            dicType: 'SIG_TASK_QUARTER',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            },
            disabled: true
        },
        {
            type: 'select',
            prop: 'processType',
            value: '',
            width: '',
            colSpan: 6,
            label: '流程类型：',
            dicType: 'SIG_PROCESS_TYPE',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            },
            disabled: true
        }
    ]
}

// 月份表单
export const formOptionMonth = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        {
            type: 'input',
            prop: 'taskName',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '任务名称：',
            showTooltip: true,
            disabled: true
        },
        {
            type: 'datePicker',
            prop: 'taskYear',
            value: new Date().getFullYear().toString(),
            format: 'yyyy',
            width: '',
            colSpan: 6,
            valueFormat: 'yyyy',
            clearable: true,
            dateType: 'year',
            label: '任务年份：',
            disabled: true
        },
        {
            type: 'select',
            prop: 'taskMonth',
            value: '',
            width: '',
            colSpan: 6,
            label: '任务月份：',
            dicType: 'month',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            },
            disabled: true
        },
        {
            type: 'select',
            prop: 'processType',
            value: '',
            width: '',
            colSpan: 6,
            label: '流程类型：',
            dicType: 'SIG_PROCESS_TYPE',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            },
            disabled: true
        }
    ]
}

export const MyformOption = {
    size: 'mini',
    inline: true,
    labelWidth: '120px',
    itemData: [
        {
            type: 'input',
            prop: 'prjCode',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '项目编码：'
        },
        {
            type: 'input',
            prop: 'prjName',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '项目名称：'
        },
        {
            type: 'input',
            prop: 'supplierCode',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '供应商编码：'
        },
        {
            type: 'input',
            prop: 'supplierName',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '供应商名称：'
        }
    ]
}

export const tableColumns = [
    { label: '项目编码', width: '180', prop: 'prjCode', isEdit: false, isSelect: true, selectType: 'PROJECT_CODE', dicProp: { label: 'prjCode', value: 'prjCode' }}, // 站址编码
    { label: '项目名称', width: '180', prop: 'prjName', isEdit: false, isSelect: true, selectType: 'PROJECT_CODE', dicProp: { label: 'prjName', value: 'prjName' }}, // 服务编码
    { label: '系统名称', width: '200', prop: 'systemName', isEdit: true }, // 服务编码名称
    { label: '供应商编码', width: '180', prop: 'supplierCode', isEdit: false, isSelect: true, selectType: 'SUPPIER_CODE', dicProp: { label: 'supplierCode', value: 'supplierCode' }}, // 供应商编码
    { label: '供应商名称', width: '180', prop: 'supplierName', isEdit: false, isSelect: true, selectType: 'SUPPIER_CODE', dicProp: { label: 'supplierName', value: 'supplierName' }}, // 供应商编码
    { label: '供应商人员', width: '180', prop: 'supplierUserName', isEdit: true, isSelect: true, selectType: 'SUPPIER_USER', dicProp: { label: 'supplierUserName', value: 'supplierUserName' }}, // 供应商编码
    { label: '合同编号', width: '180', prop: 'contractCode', isEdit: false, isSelect: true, selectType: 'CONTRACT_CODE', dicProp: { label: 'contractCode', value: 'contractCode' }},
    { label: '工作量(人/日)', width: '', prop: 'workLoads', isEdit: true },
    { label: '单价(含税)', width: '', prop: 'taxPrice', isEdit: true },
    { label: '单价(不含税)', width: '', prop: 'price', isEdit: true },
    { label: '订单含税总价(元)', width: '', prop: 'totalTaxAmount', isEdit: true },
    { label: '订单不含税总价(元)', width: '', prop: 'totalAmount', isEdit: true },
    { label: '考核扣款含税(元)', width: '', prop: 'taxDeducAmount', isEdit: true },
    { label: '考核扣款不含税(元)', width: '', prop: 'deducAmount', isEdit: true },
    { label: '付款金额含税(元)', width: '', prop: 'paymentTotalTaxAmount', isEdit: false },
    { label: '付款金额不含税(元)', width: '', prop: 'paymentTotalAmount', isEdit: false },
    { label: '平均考核成绩', width: '', prop: 'avgScore', isEdit: false },
    { label: '月考核成绩', width: '', prop: 'scoreMonth1', isEdit: true },
    { label: '月考核成绩', width: '', prop: 'scoreMonth2', isEdit: true },
    { label: '月考核成绩', width: '', prop: 'scoreMonth3', isEdit: true },
    { label: '创建时间', width: '', prop: 'creationDate', isEdit: false }
]

export const ENUM_TYPE_PROP = {
    'prjCode': 'prjName',
    'prjName': 'prjCode',
    'supplierCode': 'supplierName',
    'supplierName': 'supplierCode',
    'contractCode': 'contractName',
    'contractName': 'contractCode',
    'supplierUserName': 'supplierUserCode',
    'supplierUserCode': 'supplierUserName',
    'code': 'code',
    'PROJECT_CODE': 'PROJECT_CODE',
    'SUPPIER_CODE': 'SUPPIER_CODE',
    'CONTRACT_CODE': 'CONTRACT_CODE',
    'SUPPIER_USER': 'SUPPIER_USER'
}
export const ENUM_TYPE = {
    '0': 'PROJECT_CODE',
    '1': 'SUPPIER_CODE',
    '2': 'CONTRACT_CODE',
    '3': 'SUPPIER_USER'
}
export const ENUM_TYPE_BACK = {
    'PROJECT_CODE': '0',
    'SUPPIER_CODE': '1',
    'CONTRACT_CODE': '2',
    'SUPPIER_USER': '3'
}

export const CONSOLE_MESSAGE = 'SINGAREMESSAGE'
